package org.ldx.lotterysystem.service;

import org.ldx.lotterysystem.controller.param.CreateActivityParam;
import org.ldx.lotterysystem.controller.param.PageParam;
import org.ldx.lotterysystem.controller.result.CreateActivityResult;
import org.ldx.lotterysystem.service.dto.*;
import org.springframework.stereotype.Service;


public interface ActivityService {
    /**
     * 创建活动
     * @param param
     * @return
     */
    CreateActivityDto createActivity(CreateActivityParam param);

    /**
     * 根据分页获取活动列表
     * @param param
     * @return
     */
    PageListDTO<ActivityDTO> findActivityList(PageParam param);

    /**
     * 获取活动详细信息
     * @param activityId
     * @return
     */
    ActivityDetailDTO getActivityDetail(Long activityId);

    /**
     * 缓存活动详细信息
     * @param activityId
     */
    void cacheActivity(Long activityId);
}
